package src;

import java.awt.Color;
import java.awt.Dimension;

/**
 * @author GUI-Programmer
 * @version 09.11.2011 18:50
 */
public abstract class Figure implements Paintable {
	private boolean fill;
	private int x, y;
	private int width, height;
	private Color color;
	
	public void setLocation(int x, int y) {
		this.x = x; this.y = y;
	}
	
	public int getX() {
		return x;
	}
	
	public int getY() {
		return y;
	}
	
	public void setSize(Dimension size) {
		this.width = size.width;
		this.height = size.height;
	}
	
	public int getWidth() {
		return width;
	}
	
	public int  getHeight() {
		return height;
	}
	
	public void setColor(Color color) {
		this.color = color;
	}
	
	public Color getColor() {
		return color;
	}
	
	public void setFill(boolean fill) {
		this.fill = fill;
	}
	
	public boolean getFill() {
		return fill;
	}
	
	public abstract String getDiscription();
}